<%@ tag language="java" pageEncoding="UTF-8"%>

<%@ attribute name="name" rtexprvalue="true" required="true"%>
<%@ attribute name="label" rtexprvalue="true"%>
<%@ attribute name="required" rtexprvalue="true"%>
<%@ attribute name="value" rtexprvalue="true"%>
<%@ attribute name="single" rtexprvalue="true"%>
<%@ attribute name="help" rtexprvalue="true"%>
<%@ attribute name="onchange" rtexprvalue="true"%>
<%@ attribute name="onclick" rtexprvalue="true"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="base" uri="/WEB-INF/mytags.tld"%>

<c:set var="local" value="${pageContext.request.contextPath}/service/channelAction" scope="request"/>

<c:if test="${required==null}">
	<c:set var="required" value="false" />
</c:if>

<c:choose>
	<c:when test="${single==null}">
		<c:set var="single" value="1" />
	</c:when>
	<c:when test="${single==1}">
		<c:set var="single" value="3" />
	</c:when>
	<c:otherwise>
		<c:set var="single" value="1" />
	</c:otherwise>
</c:choose>

<th><c:if test="${required}">
	<label class="requireField">*</label>
</c:if> <label>${label}:</label></th>

<base:bridge var="map" value="${value}"/>

<td>
	
	<input type="text" style="width: 220px;" name="picture_img"	id="uploadImgPath1" value="${map.picture_img}"> 
	<input type="button" onclick="previewImg(1);" value="预览"/> <br>
	<span id="ufc1">
		<input type="file" style="width: 180px;" size="14" id="uploadFile1" name="filedata"> 
	</span> 
	<label> 
		<input type="checkbox" name="picture_mark" onclick="$('#mark1').val(this.checked);" <c:if test="${map.picture_mark=='on'}"> checked="checked"</c:if>>水印
	</label> 
		<input type="hidden" value="${map.picture_mark=='on'?true:false}" id="mark1"> 
		<input type="button" onclick="upload(1);" value="上传"> <br>
		<label>宽度 :</label>
		<input type="text" size="5" name="picture_zoomWidth" value="${map.picture_zoomWidth!=null?map.picture_zoomWidth:139}" id="zoomWidth1">
		<label>高度 :</label>
		<input type="text" size="5"	name="picture_zoomHeight" value="${map.picture_zoomHeight!=null?map.picture_zoomHeight:139}" id="zoomHeight1">
		<input type="button" onclick="imgCut(1);" value="剪切">
</td>
<td colspan="2" style="text-align: center;"><img
	style="width: 100px; height: 70px; background-color: rgb(204, 204, 204); border: 1px solid rgb(51, 51, 51);"
	alt="预览" id="preImg1" src="http://<%=request.getLocalAddr()+":"+request.getLocalPort()%>${map.picture_img}">
</td>